<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
  </body>
  <section class="product">
    <h2>产品展示</h2><a href="#">更多产品</a>
    <ul>
    <% 
    // 将路由中传递过来的数据解析并显示在页面中
    for(var i=0;i<products.length;i++){ 
    %>
        <li>
            <a href="">
                <img src="<%= products[i].image %>" alt="" />
                <p><%= products[i].name %></br><span>价格：¥<%= products[i].price %></span></p>
            </a>
        </li>
    <% 
    } 
    %>
    </ul>
</section>

   
</html>
